package cn.vendpay.com.service.impl;

import cn.vendcommon.com.entity.DeductionRecord;
import cn.vendpay.com.mapper.DeductionRecordMapper;
import cn.vendpay.com.service.DeductionRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 扣款记录服务实现类
 * @author Eleven
 */
@Service
public class DeductionRecordServiceImpl implements DeductionRecordService {

    @Autowired
    private DeductionRecordMapper deductionRecordMapper;

    /**
     *  保存订单
     * @param deductionRecord
     */
    @Override
    public void insertDeductionRecord(DeductionRecord deductionRecord) {
        deductionRecordMapper.insert(deductionRecord);
    }

    @Override
    public List<DeductionRecord> getDeductionRecordListByPhone(String phone) {
        return deductionRecordMapper.getDeductionRecordListByPhone(phone);
    }
}
